package code.wrtp;

/*For a lot of packet type,
 * we need different frame control. One to indicate
 * varal and another to indicate a ring. WITH THAT
 * WE AVOID CONFUSION, WHEN A VARAL HAS SAME RA AS 
 * A RING*/
public interface FrameControlType {

	/* Defining packets format */
	/* binary representation 00000000 */
	public static final byte DELETED_PCKT = 0;
	/* binary representation 00000001 */
	public static final byte NORMAL_TOKEN = 1;
	/* binary representation 00000010 */
	public static final byte ELECTION_TOKEN = 2;
	/* binary representation 00000011 */
	public static final byte ELECTED_TOKEN = 3;
	/* binary representation 00000100 */
	public static final byte SET_PREDECESSOR = 4;
	/* binary representation 00000101 */
	public static final byte SET_SUCCESSOR = 5;
	/* binary representation 00000110 */
	public static final byte DATA_PACKET = 6;	
	/* binary representation 00000111 */
	public static final byte VARAL_TOKEN = 7;
	/* binary representation 00001000 */
	public static final byte VARAL_ELECTION_TOKEN = 8;
	/* binary representation 00001001 */
	public static final byte VARAL_ELECTED_TOKEN = 9;
	/* binary representation 00001010 */
	public static final byte VARAL_SET_PREDECESSOR = 10;
	/* binary representation 00001011 */
	public static final byte VARAL_SET_SUCCESSOR = 11; 
	/* binary representation 00001100 */
	public static final byte VARAL_DATA_PACKET = 12;
	/* binary representation 00001101*/
	public static final byte SELF_ADVERTISING = 13;
	/* binary representation 00001110*/
	public static final byte ENTERING_ALERT = 14;
	/* binary representation 00001111*/
	public static final byte LEAVING_ALERT = 15;
	/* binary representation 00010000*/
	public static final byte RE_REPRESENTING_ALERT = 16;
	/* binary representation 00010001 */
	public static final byte SOLICIT_ENTERING = 17;
	/* binary representation 00010010 */
	public static final byte VARAL_SOLICIT_ENTERING = 18;
	/* binary representation 00010011 */
	public static final byte ACK_DATA_PCKT = 19;
	/* binary representation 00010100 */
	public static final byte VARAL_ACK_DATA_PCKT = 20;
	/* binary representation 00010101 */
	public static final byte RING_ENTERING_REPLY = 21;
	/* binary representation 00010110 */
	public static final byte VARAL_ENTERING_REPLY = 22;
	/* binary representation 00010111 */
	public static final byte COORDINATOR_LEAVING_ALERT = 23;
}